﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 控制台测试.Service
{
    public class UserService2
    {
        
        private static readonly Lazy<UserService2> _instance = new Lazy<UserService2>(() => new UserService2());

        private UserService2(){}

        public static UserService2 Instance { get {  return _instance.Value; } }

        public void SayHello()
        {
            Console.WriteLine("HelloWorld");
        }
    }
}
